

export const refundDict = [
  {code: 'SUBMIT', codeName: '已经提交等待退款'},
  {code: 'SUCCESS', codeName: '成功'},
  {code: 'CHANGE', codeName: '异常'},
  {code: 'REFUNDCLOSE', codeName: '关闭'},
];


export function refundGetName(code){
  for (let i = 0; i < refundDict.length; i++) {
    if (refundDict[i].code === code)
      return refundDict[i].codeName;
  }

  return "未知";
}
